<!DOCTYPE html>
<html lang="en">
      <head>
        <meta charset="UTF-8">
        <title>修改商品</title>
        <link rel="stylesheet" type="text/css" href="../page/fabu/index.css">
        <link rel="stylesheet" type="text/css" href="../page/common/layout.css">
        <script type="text/javascript" src="../util/jquery.min.js"></script>
        <script type="text/javascript" src="../util/dot.js"></script>
        <script type="text/javascript" src="../util/font/iconfont.js"></script>
        <script type="text/javascript" src="../util/jquery.min.js"></script>
        <style type="text/css">
	        input{
	        	height: 40px;
	        	width: 200px;
	        }
         	select{
        		width: 200px;
        	}
        	img{
	        	width: 200px;
        	}
        </style>
        <script type="text/javascript">
        	$(function(){
     
        	
        	
        //获取大分类
          $(".bigClass").append("<option value="+0+">请选择</option>"); 
              $.ajax({ 
			     type: "post",
			     //大分类查询地址
			     url: "http://localhost:8080/SST/view/getBigClass.do", 
			     success: function(msg){ 
			    	 //成功 执行回调函数
			    	 var list = eval(msg);// msg是返回数据
			    	 $.each(list,function(index,c){
			    		$(".bigClass").append("<option value="+c.bigclass_id+">"+c.bigtitle+"</option>"); 
			    	 });
			    	 } 	
                   
                   });
            
         
            
        //获取小分类
            $(".bigClass").change(function(){
    			var caseID = $(".bigClass").val();
    			 $(".smallClass").empty();
    			$(".smallClass").append("<option value="+0+">请选择</option>");
    			$.ajax({ 
    			     type: "post",
    			     //小分类查询地址
    			     url: "http://localhost:8080/SST/view/getSmallClass.do", 
    			     data: "bigclassId="+caseID, 
    			     success: function(msg){ 
    			    	 //成功 执行回调函数
   
    			    	 var list = eval(msg);// msg是返回数据
    			    	 $.each(list,function(index,c){
    			    		$(".smallClass").append("<option value="+c.id+">"+c.case1+"</option>"); 
    			    	 });
    			    	 } 	
    			});
    		

        	});        
        	});
        	
        
        </script>
    </head>
    <body> 
        修改商品:
       <form action="goodsadd.do" method="post" enctype="multipart/form-data">
    	
    		 商品名：<input type="text" name="goods_name" /><br/>
    		商品描述：<input type="text" name="goods_detail" /><br/>
    		商品原图：<span><img alt="" src=""></span>
    		商品图片：<input type="file" name="uploadfile"/><br/>
    		
    	 	商品分类：<select></select><select name="is_good"></select><br/>
    		商品价格：<input type="text" name="goods_price" /><br/>
    		商品链接：<input type="text" name="goods_src" /><br/> 
    			<input type="hidden" name="goods_id" />
    		<input type="submit" value="提交" >
    	</form>
      
        
    </body>
</html>